package com.tree;

/**
 * 三叉树Class
 *
 * @author yuelinbo
 * @date 2021/3/20 15:01:32
 **/
public class TreeNode {

    private Integer data;
    private TreeNode left;
    private TreeNode middle;
    private TreeNode right;


    public TreeNode() {
    }

    public TreeNode(Integer data) {
        this.data = data;
    }

    public int getData() {
        return data;
    }

    public void setData(Integer data) {
        this.data = data;
    }

    public TreeNode getLeft() {
        return left;
    }

    public void setLeft(TreeNode left) {
        this.left = left;
    }

    public TreeNode getMiddle() {
        return middle;
    }

    public void setMiddle(TreeNode middle) {
        this.middle = middle;
    }

    public TreeNode getRight() {
        return right;
    }

    public void setRight(TreeNode right) {
        this.right = right;
    }
}
